import {get,post,json} from '../request'
// 获取银行卡信息  
export const getBankCard = (params) => {
  return post('/craftsman-three-party/union/pay/bank/account', params)
}
// 查询发卡银行
export const checkBank = (params) => {
  return post('/craftsman-three-party/union/pay/bank', params)
}
// 查询发卡银行()
export const checkBankFromYinlian = (params) => {
  return post('/craftsman-three-party/union/pay/queryCardBin', params)
}
// 绑定银行卡 参数为JSON
export const bindBankCard = (params) => {
  return json('/craftsman-three-party/union/pay/binding',params)
}
// 可用银行列表
export const getBankList = (params) => {
  return get('/craftsman-three-party/union/pay/bank',params)
}
// 更换银行卡
export const updateBankCard = (params) => {
  return post('/user/account/bindAnotherBankCard',params)
}